<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>判断两个事件是否存在冲突</title>
</head>
<body>
  <script>
    function fn(event1, event2) {
      return !(event1[0] > event2[1] || event2[0] > event1[1])
    }
    console.log(fn(['01:15','02:00'], ['02:00','03:00']))
  </script>
</body>
</html>